package operator;

import common.Singleton;
import view.Main;
import view.ViewControl;

public class ContextHandler {

    private Main main;
    private Handler handler;
    private ViewControl view;
    private static ContextHandler contextHandler;
    private ContextHandler() {}
    public static ContextHandler getContextHandler() {
        if(contextHandler == null) {
            contextHandler = new ContextHandler();
            contextHandler.main = Main.main;
            contextHandler.handler = Singleton.handler();
            contextHandler.view = Singleton.vc();
        }
        return contextHandler;
    }

}
